package com.gxa.learning.pc.mapper;

import com.gxa.learning.core.pojo.Score;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 课程成绩相关的操作
 *
 * @Author lirucong
 * @Date 14:40 2021/12/9
 */
public interface ScoreMapper extends Mapper<Score> {

    /**
     * 批量加入考试初始状态的成绩记录
     */
    Integer addScoresBatch(List<Score> list);

    /**
     * 获取成绩列表
     */
    List<Map<String, Object>> getScoreList(Long pid, String name, String company, String department, Integer offset, Integer limit);

    /**
     * 修改状态
     */
    Integer updateStatus(Long id, Integer status);

}
